#pragma once

#include "SceneNode.h"

struct SpriteNodeDef : public SceneNodeDef
{
	mtMETA_DEC;
	std::string		sprite;
	ECS::Nullable<float>	scale;
};

class SpriteNode : public SceneNode
{
	mtMETA_DEC;
public:
	bool initWith(SpriteNodeDef* def);

	virtual void onDestroy() override;
protected:
	cocos2d::CCSprite* _sprite;
};